package com.zizhu.idgen.repository.impl.dao;


import com.zizhu.idgen.domain.NumberConfig;
import com.zizhu.idgen.domain.NumberConfigStatus;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * Created by Administrator on 2018/1/24 0024.
 */
public interface VirtualNumberDao extends JpaRepository<NumberConfig, Long> {

    Optional<NumberConfig> getFirstByStatusOrderByIdAsc(NumberConfigStatus status);
}
